package a.h;

import java.util.*;

public class wc
  implements uc
{
  Properties a;
  public static int b;
  
  public wc(Properties paramProperties)
  {
    this.a = paramProperties;
  }
  
  public Map a(String paramString)
  {
    int j = ec.t;
    boolean bool = ec.s;
    HashMap localHashMap = new HashMap();
    label106:
    do
    {
      String str2;
      do
      {
        Iterator localIterator = this.a.entrySet().iterator();
        break label106;
        Map.Entry localEntry;
        StringTokenizer localStringTokenizer;
        do
        {
          do
          {
            String str1;
            do
            {
              if (!localIterator.hasNext()) {
                break;
              }
              localEntry = (Map.Entry)localIterator.next();
              str1 = (String)localEntry.getKey();
            } while (!str1.startsWith(paramString));
            localStringTokenizer = new StringTokenizer(str1.substring(paramString.length()), ".", false);
            if ((j != 0) || (bool)) {
              break label233;
            }
            localObject1 = localHashMap;
          } while (!localStringTokenizer.hasMoreTokens());
          str2 = localStringTokenizer.nextToken();
        } while (bool);
        int i = !localStringTokenizer.hasMoreTokens() ? 1 : 0;
        if (j == 0)
        {
          if (i == 0) {
            break;
          }
          if (j != 0) {
            break label187;
          }
          ((Map)localObject1).put(str2, localEntry.getValue());
        }
      } while (!bool);
      Object localObject2 = (Map)((Map)localObject1).get(str2);
      if (j == 0) {
        if (localObject2 == null)
        {
          localObject2 = new HashMap();
          ((Map)localObject1).put(str2, localObject2);
        }
      }
      Object localObject1 = localObject2;
    } while (!bool);
    label187:
    label233:
    return localHashMap;
  }
  
  public void a(String paramString, Map paramMap)
  {
    int i = ec.t;
    boolean bool = ec.s;
    Iterator localIterator = paramMap.entrySet().iterator();
    label124:
    do
    {
      String str1;
      do
      {
        Object localObject;
        do
        {
          if (!localIterator.hasNext()) {
            return;
          }
          Map.Entry localEntry = (Map.Entry)localIterator.next();
          str1 = (String)localEntry.getKey();
          localObject = localEntry.getValue();
          if (i != 0) {
            break label124;
          }
          if (!(localObject instanceof Map)) {
            break;
          }
          a(paramString + "." + str1, (Map)localObject);
        } while ((i == 0) && (!bool));
        if (!(localObject instanceof String)) {
          break;
        }
        str2 = paramString + "." + str1;
        this.a.setProperty(str2, (String)localObject);
        if (i != 0) {
          break label216;
        }
      } while (!bool);
      String str2 = paramString + "." + str1;
      this.a.remove(str2);
    } while (!bool);
    label216:
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.wc

 * JD-Core Version:    0.7.0.1

 */